<?php

	$usrnm = $_GET['usrnm'];
	$sessionKey = $_GET['sessionKey'];
	$con = mysql_connect("localhost","root");
	
	if(!$con)
		die("could not connect ".mysql_error());
		
	mysql_select_db("db1789586-main",$con);
	
	$query = 'DELETE FROM sessioinDetails WHERE usrnm="'.$usrnm.'" AND sessionKey="'.$sessionKey.'"';
	$result = mysql_query($query);
	mysql_close($con);
	if($result == 1)
		$arr = array('result'=>'success');
	else
	$arr = array('result'=>'failed');
	echo json_encode($arr);
?>